//
//  TDQuadCurveMenu.h
//  iosf
//
//  Created by Ye Yuan on 12-4-2.
//  Copyright (c) 2012年 Neusoft Corporation. All rights reserved.
//  A customizable quadCurveMenu view


#import <UIKit/UIKit.h>
#import "TDQuadCurveMenuItem.h"

@protocol TDQuadCurveMenuDelegate;


@interface TDQuadCurveMenu : UIView <TDQuadCurveMenuItemDelegate>
{
    NSArray *_menusArray;
    int _flag;
    NSTimer *_timer;
    TDQuadCurveMenuItem *_addButton;
    
    id<TDQuadCurveMenuDelegate> _delegate;

}
@property (nonatomic, copy) NSArray *menusArray;
@property (nonatomic, getter = isExpanding) BOOL expanding;
@property (nonatomic, assign) id<TDQuadCurveMenuDelegate> delegate;

@property (nonatomic, retain) UIImage *image;
@property (nonatomic, retain) UIImage *highlightedImage;
@property (nonatomic, retain) UIImage *contentImage;
@property (nonatomic, retain) UIImage *highlightedContentImage;

@property (nonatomic, assign) CGFloat nearRadius;
@property (nonatomic, assign) CGFloat endRadius;
@property (nonatomic, assign) CGFloat farRadius;
@property (nonatomic, assign) CGPoint startPoint;
@property (nonatomic, assign) CGFloat timeOffset;
@property (nonatomic, assign) CGFloat rotateAngle;
@property (nonatomic, assign) CGFloat menuWholeAngle;

- (id)initWithFrame:(CGRect)frame menus:(NSArray *)aMenusArray;
@end

@protocol TDQuadCurveMenuDelegate <NSObject>
- (void)quadCurveMenu:(TDQuadCurveMenu *)menu didSelectIndex:(NSInteger)idx;
@end